import axios from 'axios';

const api = axios.create({
  baseURL: 'http://localhost:8080/api',
  timeout: 5000
});

export const getDiskInfo = (page = 0, size = 10) => {
  return api.get('/disk-info', {
    params: {
      page,
      size
    }
  });
};

export default api;